package 面向对象作业;

public class BookTest {
    public static void main(String[] args) {
        Book book = new Book(1, "平凡的世界1", "路遥", 45.8, "新华社", "2012-12-1");
        Book book1 = new Book(2, "平凡的世界2", "路遥", 49.6, "新华社", "2012-12-1");
        Book book2 = new Book(3, "平凡的世界3", "路遥", 50.8, "新华社", "2012-12-1");
        Book book3 = new Book();
        book3.setId(4);
        book3.setName("人类简史");
        book3.setWriter("尤拉尔");
        book3.setPrice(88.1);
        book3.setChuBanShe("新华社");
        book3.setChuBanRiQi("2019-12-5");
        book.bianHuaPrice(5);
        book3.bianHuaPrice(10);
        double bookPrice = book.getPrice();
        System.out.println(bookPrice);
        System.out.println(book);
        System.out.println(book1);
        System.out.println(book2);
        System.out.println(book3);
    }
}
